package com.nf.xiaomi.dao;

import com.nf.xiaomi.entity.CategoryEntity;

import java.util.List;

public interface CategoryDao {
    List<CategoryEntity> getAll();

    int insert(String name);

    int update(Integer id, String name);

    int delete(Integer id);

    int selectCidByName(String cname);

    String selectNameByCid(int id);

}
